import {
    Tabbar,
    TabbarItem,
    Swipe,
    SwipeItem,
    Image as VanImage,
    DropdownMenu,
    DropdownItem,
    Button,
    Field,
    List,
    PullRefresh,
    Form,
    Toast,
    Popup
} from 'vant'

const Vant = {
    install: function (Vue) {
        Vue.use(Tabbar)
        Vue.use(TabbarItem)
        Vue.use(Swipe)
        Vue.use(SwipeItem)
        Vue.use(VanImage)
        Vue.use(DropdownMenu)
        Vue.use(DropdownItem)
        Vue.use(Button)
        Vue.use(Field)
        Vue.use(List)
        Vue.use(PullRefresh)
        Vue.use(Form)
        Vue.prototype.$Toast = Toast
        Vue.use(Popup)
    }
}

export default Vant
